package com.arvinclub.service.dao;

import com.arvinclub.model.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户DAO层
 */
public interface UserDao {

    User backUserById(int id);

    User backUserByName(String name);

    User checkUser(User user);

    boolean addUser(User user);

    boolean attention(@Param("fans") int fans, @Param("blogger") int idol);

    boolean isAttention(@Param("fans") int fans, @Param("blogger") int idol);

    boolean delAttention(@Param("fans") int fans, @Param("blogger") int idol);

    List<User> selectAllUser(String keyword);

    void delUser(int id);

    void reuseUser(int id);

    void mute(User user);

    int fansCount(int id);

    int idolCount(int id);

    List<User> attentionList(int id);

    List<User> fansList(int id);
}
